import 'dart:async';

import 'package:flutter/services.dart';

class FlutterPluginPrinter {
  static const MethodChannel _channel = const MethodChannel('flutter_plugin_printer');

  static Future<String> get searchForPrinter async {
    final String version = await _channel.invokeMethod('searchForPrinter');
    return version;
  }
  static Future<String>  printImage(String imagePath) async {
    Map<String, dynamic> param = new Map();
    param['imagePath'] = imagePath;
    final String version = await _channel.invokeMethod('printImage',param);
    return version;
  }
}
